﻿@model Fish.Models.EventUserRelations

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<div>
    <h4>EventUserRelations</h4>
	<hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.Events.Name)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Events.Name)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Users.Username)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Users.Username)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.IsAdmin)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.IsAdmin)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.AttendingStatus)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.AttendingStatus)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Tasks)
        </dt>
      
        @foreach (var task in Model.Tasks)
        {
            <dd>@task.ToString()</dd>
        }
    </dl>
</div>

<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.ID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
